#ifndef HELPWIN_H
#define HELPWIN_H

#include <QWidget>
#include <QKeyEvent>
#include <QDebug>



#define GUIDEIMAGE_ZH QString("/mnt/mmcblk0p1/guide/")

namespace Ui {
class helpWin;
}

typedef enum{
    GUID_OPERATION,  //操作指南
    GUID_MAINTAIN,   //保养指南
    GUID_PROPAGANDA  //宣传视频
}GUIDETUPE;


typedef enum{
    UI_ZH = 0,
    UI_EN
}LANGUAGE;




class helpWin : public QWidget
{
    Q_OBJECT

public:
    explicit helpWin(QWidget *parent = 0);
    ~helpWin();
    void showWin(GUIDETUPE type);
    void setLanguage(LANGUAGE type);

    void setMessage(QString t_title, QString t_text);
    void setMessageList(QStringList);

    void showmessages();
signals:
    void KeyPress();


protected:
    void keyPressEvent(QKeyEvent *);

private:
    Ui::helpWin *ui;
    int my_currentPage;
    int my_pageNumber;
    int my_opPage;
    int my_mgPage;
    GUIDETUPE my_currentType;


private:
    void showOperationGuid( );
    void showMaintainGuid( );
    void playPropagandaVideo(QString path);
    void setCurrentPage();
};

#endif // HELPWIN_H
